IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[InsertDepartamento]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[InsertDepartamento]
GO

CREATE PROCEDURE [dbo].[InsertDepartamento]
(
	@IdDepartamento int,
	@Nombre varchar(150),
	@Estado bit
)
AS
BEGIN
	SET NOCOUNT ON

	INSERT INTO [Departamento] ([IdDepartamento], [Nombre], [Estado]) 
	VALUES (@IdDepartamento, @Nombre, @Estado)

	SET NOCOUNT OFF
END

GO
